import fetch from '@/utils/fetch'

export function apiAllot(allotDto) {
  return fetch({
    url: '/api/v1/allot/approve',
    method: 'POST',
    data: allotDto
  })
}

export function apiGetAllotList (listQuery) {
  return fetch({
    url: '/api/v1/allot/approveList',
    method: 'GET',
    params: listQuery
  })
}

export function apiGetAlreadyAllotList (listQuery) {
  return fetch({
    url: '/api/v1/allot/already/approveList',
    method: 'GET',
    params: listQuery
  })
}
